home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5707 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: mail2news.demon.co.uk!beachyhd.demon.co.uk
  2. From: Adam@beachyhd.demon.co.uk
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Scrolling only selected bitplanes
  5. Date: 18 Mar 96 20:13:09 GMT
  6. Organization: Beachy Head - UK
  7. Message-ID: <314e1835@beachyhd.demon.co.uk>
  8. X-NNTP-Posting-Host: beachyhd.demon.co.uk
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-GateSoftware: AmiGate 1.6 (13.11.95)
  13. MMDF-Warning:  Parse error in original version of preceding line at relay-2.mail.demon.net
  14. X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!beachyhd.demon.co.uk
  15.  
  16. Hi all,
  17.  
  18. I'm wondering how to go about something..
  19.  
  20. I have an intuition screen open, on to which I'm directly rendering (using its
  21. own rastport, not a window's rastport). This window can be any number of
  22. bitplanes (2 to 8), but usually is 8.
  23.  
  24. I am currently drawing (using WritePixel()) and scrolling (using
  25. ScrollRaster()). However, I want to be able to draw and scroll completely
  26. *independently* of the final bitplane. So I draw and scroll planes 1 through 7,
  27. but plane 8 stays completely undisturbed.
  28.  
  29. This will allow me a basic parallax effect. As planes 1 - 7 scroll by, plane 8
  30. stays behind, motionless.
  31.  
  32. However, I don't quite know how I can achieve this effect. Both WritePixel()
  33. and ScrollRaster() both operate on *all* bitplanes in the Rastport. Is there
  34. any way I can get these functions to leave the final plane completely alone?
  35.  
  36. If it's not possible, it's only really the scrolling that really must not
  37. interact with the background. Is it possible for me to scroll 7 of the 8 planes
  38. using a function other than ScrollRast? Then I could use the blitter to only
  39. scroll the seven planes, whilst the 8th is left alone.
  40.  
  41. Any help would be greatly appreciated!
  42.  
  43. .\dam.          [Team AMIGA]          //\ ad32@brighton.ac.uk \\/
  44.  
  45.